Two Constant-Factor-Optimal Realizations of Adaptive Heapsort
نویسندگان
چکیده
In this paper we introduce two efficient priority queues. For both, insert requires O(1) amortized time and extract-min O(lgn) worstcase time including at most lgn+O(1) element comparisons, where n is the number of elements stored. One priority queue is based on a weak heap (array-based) and the other on a weak queue (pointer-based). In both, the main idea is to temporarily store the inserted elements in a buffer, and once it is full to move its elements to the main queue using an efficient bulk-insertion procedure. By employing the new priority queues in adaptive heapsort, we guarantee, for several measures of disorder, that the formula expressing the number of element comparisons performed by the algorithm is optimal up to the constant factor of the high-order term. We denote such performance as constant-factor optimality. Unlike some previous constant-factor-optimal adaptive sorting algorithms, adaptive heapsort relying on the developed priority queues is practically workable.
منابع مشابه
The weak-heap data structure: Variants and applications
The weak heap is a priority queue that was introduced as a competitive structure for sorting. Its array-based form supports the operations find -min in O(1) worst-case time, and insert and delete-min in O(lg n) worst-case time using at most dlg ne element comparisons. Additionally, its pointer-based form supports delete and decrease in O(lg n) worst-case time using at most dlg ne element compar...
متن کاملMathematical Analysis of Optimal Tracking Interval Management for Power Efficient Target Tracking Wireless Sensor Networks
In this paper, we study the problem of power efficient tracking interval management for distributed target tracking wireless sensor networks (WSNs). We first analyze the performance of a distributed target tracking network with one moving object, using a quantitative mathematical analysis. We show that previously proposed algorithms are efficient only for constant average velocity objects howev...
متن کاملAnti-Synchronization of Complex Chaotic T-System Via Optimal Adaptive Sliding-Mode and Its Application In Secure Communication
In this paper, an optimal adaptive sliding mode controller is proposed for anti-synchronization of two identical hyperchaotic systems. We use hyperchaotic complex T-system for master and slave systems with unknown parameters in the slave system. To construct the optimal adaptive sliding mode controller, first a simple sliding surface is designed. Then, the optimal adaptive sliding mode controll...
متن کاملDelay Lines Using Self-Adapting Time Constants
Shao-Jen Lim and John G. Harris Computational Neuro-Engineering Laboratory University of Florida Gainesville, FL 32611 Abstract| Transversal lters using ideal tap delay lines are a popular form of short-term memory based ltering in adaptive systems. Some applications where these lters have attained considerable success include system identi cation, linear prediction, channel equalization and ec...
متن کاملA New Data Structure for Heapsort with Improved Number of Comparisons
In this paper we present a new data structure for implementing heapsort algorithm for pairs of which can be simultaneously stored and processed in a single register. Since time complexity of Carlsson type variants of heapsort has already achieved a leading coefficient of 1, concretely n lgn + n lg lg n, and lower bound theory asserts that no comparison based in-place sorting algorithm can sort ...
متن کامل